//
//  YXPostingViewController.m
//  CaoShi
//
//  Created by 杨旭 on 2018/10/17.
//  Copyright © 2018年 杨旭. All rights reserved.
//

#import "YXPostingViewController.h"
#import "LLImagePickerView.h"
@interface YXPostingViewController ()

@property (weak, nonatomic) IBOutlet UITextField *titleTF;
@property (weak, nonatomic) IBOutlet UIView *bgImgView;

@property (weak, nonatomic) IBOutlet UITextView *textView;

@property (strong, nonatomic)LLImagePickerView *imgPicker;

@end

@implementation YXPostingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.title = @"我要发贴";
    
    
    _imgPicker = [[LLImagePickerView alloc]initWithFrame:CGRectMake(10, 10, kScreenWidth-10-10, 80)];
    _imgPicker.backgroundColor = color_backColor;
    [self.bgImgView addSubview:_imgPicker];
    _imgPicker.type = LLImageTypePhoto;
    _imgPicker.maxImageSelected = 5;
    _imgPicker.allowMultipleSelection = NO;
    _imgPicker.allowPickingVideo = NO;
    [_imgPicker observeSelectedMediaArray:^(NSArray<LLImagePickerModel *> *list) {
//        [_selectArr removeAllObjects];
//        for (LLImagePickerModel *model in list) {
//            [_selectArr addObject:model.image];
//        }
        
        NSLog(@"%@",list);
    }];
   
    
}



- (IBAction)postBtnAction:(UIButton *)sender {
}

@end
